﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using DrugStorehouseMIS.Comm;
using DrugStorehouseMIS.DAL;
using DrugStorehouseMIS.DAL.Interface;

namespace DrugStorehouseMIS.BLL
{
    public class SystemManager
    {
        private ISystemManagerDAL dal;

        public SystemManager()
        {
            dal = Adapter.GetSystemManager();
        }

        public bool DataBackUp(string path,string name)
        {
            return dal.BackUp(path, name) < 0 ? true : false;
        }

        public bool DataRecover()
        {
            return true;
        }
    }
}
